#include <stdio.h>
#include <stdlib.h>
#define MaxSize  50

void PrintBin(int *s,int top){
	while (top!=-1)
		printf("%d",s[top--]);
}

int ExchangeBin(int x,int *s){
	int top=-1;
	while (x){
		s[++top]=x%2;
		x=x/2;
	}
	return top;
}

int main(void){
	int *s;
	int x,top;
	s=(int *) malloc (MaxSize * sizeof (int));
	scanf("%d",&x);
	top=ExchangeBin(x,s);
	PrintBin(s,top);
	top=-1;
	free(s);
	return 0;
}









